class MessageEntity {
  int id;
  int platform;
  int type;
  int receiveId;
  String content;
  int status;
  String createdAt;

  MessageEntity(
      {this.id,
        this.platform,
        this.type,
        this.receiveId,
        this.content,
        this.status,
        this.createdAt});

  MessageEntity.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    platform = json['platform'];
    type = json['type'];
    receiveId = json['receive_id'];
    content = json['content'];
    status = json['status'];
    createdAt = json['created_at'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['platform'] = this.platform;
    data['type'] = this.type;
    data['receive_id'] = this.receiveId;
    data['content'] = this.content;
    data['status'] = this.status;
    data['created_at'] = this.createdAt;
    return data;
  }
}